{__NOLAYOUT__}<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="/static/common/weui/weui.min.css" media="all">
    <title>跳转提示</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
</head>
<body>
    <div id="container">
        <div class="page">
            <div class="weui-msg">
                <div class="weui-msg__icon-area">
                    <?php switch ($code) {?>
                    <?php case 1:?>
                        <i class="weui-icon-success weui-icon_msg"></i>
                    <?php break;?>
                    <?php case 0:?>
                          <i class="weui-icon-warn weui-icon_msg"></i>
                    <?php break;?>
                    <?php } ?>
                </div>
                <div class="weui-msg__text-area">
                <?php switch ($code) {?>
                    <?php case 1:?>
                    <h2 class="weui-msg__title"><?php echo(strip_tags($msg));?></h2>
                    <?php break;?>
                    <?php case 0:?>
                    <h2 class="weui-msg__title"><?php echo(strip_tags($msg));?></h2>
                    <?php break;?>
                <?php } ?>
                    <p class="weui-msg__desc"> 页面自动跳转等待时间： <b id="wait"><?php echo($wait);?></b></p>
                </div>
                <div class="weui-msg__opr-area">
                    <p class="weui-btn-area">
                        <a id="href" href="<?php echo($url);?>" class="weui-btn weui-btn_primary">跳转</a>
                    </p>
                </div>
                <div class="weui-msg__extra-area">
                    <div class="weui-footer">
                        <p class="weui-footer__text">Copyright &copy; 2017 集团大电商</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
  <script type="text/javascript">
        (function(){
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
    </script>
</body>
</html>